package com.hll.dao;

import com.hll.pojo.Blog;

import java.util.List;
import java.util.Map;

/**
 * @author: Mr.Hu
 * @create: 2021-03-10 15:16
 */
public interface BlogMapper {
  int addBlog(Blog blog);

  /*可变的通过map传递参数*/
  List<Blog> getBlogs(Map<String, Object> map);

  List<Blog> getBlogs2(Map<String, Object> map);

  List<Blog> queryBlogChoose(Map<String, Object> map);

  List<Blog> queryBlogForeach(Map<String, Object> map);

  List<Blog> queryBlogIf(Map<String, Object> map);

  int updateBlog(Map<String, Object> map);
}
